body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.main-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header-nav {
    flex-shrink: 0;
    z-index: 1000;
}






/* 连接配置区域 */

/* 页脚样式 */
.config-bar {
    background-color: #f1f1f1;
    padding: 10px;
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid #e0e0e0;
}

.config-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}


.connection-config {
    background-color: #fff;
    border-bottom: 1px solid #e6e6e6;
    flex-shrink: 0;

    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.config-header {
    padding: 12px 15px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.config-header i {
    margin-right: 8px;
    color: #666;
}

.config-header span {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.connection-form {
    padding: 15px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
}

.form-group.small {
    flex: 0 0 55px;
}

.form-group.large {
    flex: 2;
}

.form-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.form-input {
    width: 100%;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 13px;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #16baaa;
    outline: none;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}


/* 自定义按钮样式 */
.btn-small {
    height: 28px;
    line-height: 28px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 2px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-small:hover {
    border-color: #16baaa;
    color: #16baaa;
}



















.content-wrapper {
    flex: 1;
    display: flex;
    overflow: hidden;
    background-color: #f5f5f5;
}

.left-panel {
    width: 350px;
    min-width: 300px;
    max-width: 500px;
    background-color: #fff;
    border-right: 1px solid #e6e6e6;
    overflow: hidden;
    resize: horizontal;
    display: flex;
    flex-direction: column;
}

.middle-panel {
    flex: 1;
    background-color: #fff;
    border-right: 1px solid #e6e6e6;
    overflow: hidden;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.right-panel {
    width: 400px;
    min-width: 300px;
    max-width: 600px;
    background-color: #fff;
    overflow: hidden;
    resize: horizontal;
    display: flex;
    flex-direction: column;
}

.folder-tree-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.file-details-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.code-editor-header {
    padding: 10px 15px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e6e6e6;
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-editor-container {
    flex: 1;
    overflow: hidden;
}

.code-editor-content {
    height: 100%;
    padding: 0;
}

.details-header {
    padding: 12px 15px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.details-header i {
    margin-right: 8px;
    color: #666;
}

.path-display {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
}

.path-display i {
    margin-right: 4px;
}

.details-content {
    flex: 1;
    overflow: auto;
    padding: 15px;
}

.empty-placeholder {
    text-align: center;
    margin-top: 50px;
    color: #999;
}

.editor-actions {
    display: flex;
    gap: 5px;
}

/* 自定义滚动条样式 */
.left-panel::-webkit-scrollbar,
.middle-panel::-webkit-scrollbar,
.details-content::-webkit-scrollbar {
    width: 6px;
}

.left-panel::-webkit-scrollbar-track,
.middle-panel::-webkit-scrollbar-track,
.details-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.left-panel::-webkit-scrollbar-thumb,
.middle-panel::-webkit-scrollbar-thumb,
.details-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* 抽屉样式 */
.custom-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.custom-drawer.open {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    padding: 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.drawer-close {
    cursor: pointer;
    font-size: 20px;
    color: #666;
    line-height: 1;
    transition: color 0.3s;
}

.drawer-close:hover {
    color: #333;
}

.drawer-content {
    padding: 20px;
}

.tool-section {
    margin-bottom: 20px;
}

.tool-section h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    border-left: 3px solid #16baaa;
    padding-left: 10px;
}

.tool-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-size: 13px;
}

.info-value {
    color: #333;
    font-size: 13px;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .left-panel {
        width: 280px;
        min-width: 250px;
    }
    .right-panel {
        width: 300px;
        min-width: 250px;
    }
    .custom-drawer {
        width: 320px;
        right: -320px;
    }
}
















